﻿using com.foxmail.wyyuan1991.Assignment.Solver.Dijstra;

namespace com.foxmail.wyyuan1991.Assignment.Solver
{
    public class DijstraRouteSearcher : IRouteSearchAlgorithm
    {
        public CostMatrix c{get; set;}
        public INetwork Network { get; set; }
        public IRoute SearchRoute(INode sNode, INode eNode)
        {
            RoutePlanner planner = new RoutePlanner();
            IRoute result = planner.Plan(Network.NodeList, c,sNode, eNode);
            return result;
        }
    }
}
